package com.yonyou.brigade.basic_init.controller;

import com.alibaba.fastjson.JSONObject;
import com.yonyou.brigade.basic_init.service.IBriChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>
 *     渠道信息查询
 * </p>
 *
 * @author kangfw5
 */
@RestController
@RequestMapping("/channel")
public class BriChannelController {
    @Autowired
    private IBriChannelService briChannelService;

    @RequestMapping(value = "/openStateList", method = RequestMethod.POST)
    public JSONObject getOpenStateList(@RequestBody Map params) {
        return briChannelService.orgOpenUnopen(params);
    }
}
